import request from '@/utils/request'
//获取所以菜单类别 管理菜单使用
export function alllist() {
    return request({
        url: '/menu/alllist',
        method: 'get'
    })

}
//directory
export function allDirectory() {
    return request({
        url: '/menu/directory',
        method: 'get'
    })

}

export function add(data) {
    return request({
        url: '/menu/add',
        method: 'post',
        data
    })

}

export function del(data) {
    return request({
        url: '/menu/del',
        method: 'post',
        data
    })
}
export function modify(data) {
    return request({
        url: '/menu/mod',
        method: 'post',
        data
    })

}

export function menutree() {
    return request({
        url: '/menu/menutree',
        method: 'get'
    })

}


